#include <Windows.h>
#include <Dbghelp.h>
#include "callstack.h"

int GetCallstack(int maxLevels, void ** stackFrames)
{
	return CaptureStackBackTrace(0, maxLevels, stackFrames, NULL);
}